package com.whmall.service.crm.module.supplierdeveloppool.service.impl;

import com.whmall.service.crm.entity.dto.supplierdevelop.SupplierDevelopPoolLogSaveReqDTO;
import org.springframework.stereotype.Component;


@Component
public class SupplierDevelopPoolLogValidator {

    public void validate(SupplierDevelopPoolLogSaveReqDTO reqDTO) {

        if (reqDTO == null) {
            throw new IllegalArgumentException("req不能为空");
        }

        if (reqDTO.getCompanyId() == null) {
            throw new IllegalArgumentException("公司id不能为空");
        }

        if (reqDTO.getHandleId() == null) {
            throw new IllegalArgumentException("操作人id不能为空");
        }

        if (reqDTO.getOperationType() == null) {
            throw new IllegalArgumentException("供应商开发池操作类型不能为空");
        }

        if (reqDTO.getHandleType() == null) {
            throw new IllegalArgumentException("操作人类型不能为空");
        }

    }


}
